import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入axios
import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:3000/api';

// 全局挂载
Vue.prototype.$axios = axios;

// 引入echarts
import * as echarts from 'echarts'
// 全局挂载echarts
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false

// 设置基准路径
import '../node_modules/echarts/theme/roma'
import '../node_modules/echarts/theme/dark'
Vue.prototype.$store = store;

new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
